import 'dart:convert';

/// 预约会诊提交参数体
class ConsultationPostBean {
  String doctorId,
      freeTime,
      morningAfternoon,
      title,
      content,
      appointmentImag,
      video,
      consultationTypeId,
      hospitalDeptId;

  List<dynamic> appointmentReceiverList;

  ConsultationPostBean({
    this.doctorId,
    this.freeTime,
    this.morningAfternoon,
    this.title,
    this.content,
    this.appointmentImag,
    this.video,
    this.consultationTypeId,
    this.hospitalDeptId,
    this.appointmentReceiverList,
  });

  Map<String, dynamic> toMap() {
    return {
      'doctorId': doctorId,
      'freeTime': freeTime,
      'morningAfternoon': morningAfternoon,
      'title': title,
      'content': content,
      'appointmentImag': appointmentImag,
      'video': video,
      'consultationTypeId': consultationTypeId,
      'hospitalDeptId': hospitalDeptId,
      'appointmentReceiverList': appointmentReceiverList,
    };
  }

  @override
  String toString() {
    return json.encode(toMap());
  }
}
